package com.turing.system.controller;

import com.alibaba.fastjson.JSONObject;
import com.turing.system.service.DictionaryService;
import org.springframework.web.bind.annotation.*;
import result.Result;

import javax.annotation.Resource;

/**
 * @author admin
 */
@RestController
public class DicController {
    @Resource
    private DictionaryService dictionaryService;

    /**
     * 1.8.2、50802字典详情(PC，手机)
     * @param dicId
     * @param dicName
     * @return
     */
    @GetMapping("dic/getDic")
    public Result getDic(String dicId, String dicName) {

        return dictionaryService.getDic(dicId,dicName);
    }

    @PatchMapping("dic/editSave")
    public Result editSave(@RequestBody JSONObject jsonObject){
        return dictionaryService.editSave(jsonObject);
    }



}
